package tech.jdbc.entity;

/**
 * Create with Intellij IDEA
 *
 * @Author Q
 * @date 2021/11/25/10:25
 */
public class Emp {
    private Integer id;

    private String firstName;

    private double salary;

    public Emp() {

    }

    public Emp(Integer id, String firstName, double salary) {
        this.id = id;
        this.firstName = firstName;
        this.salary = salary;
    }


    public Emp(String firstName, double salary) {
        this.firstName = firstName;
        this.salary = salary;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", firstName='" + firstName + '\'' +
                ", salary=" + salary +
                '}';
    }
}
